package so.sao.code.service.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.cache.annotation.Cacheable;
import org.springframework.stereotype.Service;

import so.sao.code.service.domain.entity.CodeSupplierConfig;
import so.sao.code.service.repository.CodeSupplierConfigDao;
import so.sao.code.service.service.CodeSupplierConfigService;

@Service
public class CodeSupplierConfigServiceImpl implements CodeSupplierConfigService {
	
	@Autowired
	private CodeSupplierConfigDao CodeSupplierConfigDao;
	
	@Override
	//@Cacheable(value = "codeSupplierConfigs", key = "#eseId") TODO XXXX
	public CodeSupplierConfig getByCompanyId(Long companyId) {
		return CodeSupplierConfigDao.findByCompanyId(companyId);
	}

}
